﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace lin_cms_dotnet_core.Models
{
    [Table("book")]
    public partial class Book
    {
        [Key]
        [Column("id", TypeName = "int(11)")]
        public int Id { get; set; }
        [Required]
        [Column("title")]
        [StringLength(50)]
        public string Title { get; set; }
        [Column("author")]
        [StringLength(30)]
        public string Author { get; set; }
        [Column("summary")]
        [StringLength(1000)]
        public string Summary { get; set; }
        [Column("image")]
        [StringLength(100)]
        public string Image { get; set; }
        [Column("create_time", TypeName = "datetime(3)")]
        public DateTime CreateTime { get; set; }
        [Column("update_time", TypeName = "datetime(3)")]
        public DateTime UpdateTime { get; set; }
        [Column("delete_time", TypeName = "datetime(3)")]
        public DateTime? DeleteTime { get; set; }
    }
}
